查询订单
请求参数 | 类型 | 描述 |
---|---|---|
out_trade_no | string | 商户系统内部订单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 微信支付分配的子商户号 |
php
$instance->v3->qrcode->transactions->outTradeNo->_out_trade_no_->getAsync([
'out_trade_no' => '20150806125346',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/qrcode/transactions/out-trade-no/{out_trade_no}')->getAsync([
'out_trade_no' => '20150806125346',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/qrcode/transactions/out-trade-no/{out_trade_no}']->getAsync([
'out_trade_no' => '20150806125346',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->qrcode->transactions->outTradeNo->_out_trade_no_->get([
'out_trade_no' => '20150806125346',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/qrcode/transactions/out-trade-no/{out_trade_no}')->get([
'out_trade_no' => '20150806125346',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/qrcode/transactions/out-trade-no/{out_trade_no}']->get([
'out_trade_no' => '20150806125346',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
appid | string | |
sub_appid | string | |
sp_mchid | string | |
sub_mchid | string | |
description | string | |
create_time | string | |
out_trade_no | string | |
transaction_id | string | |
trade_state | string | SUCCESS | ACCEPTED | PAY_FAIL | REFUND 枚举值之一 |
trade_state_description | string | |
success_time | string | |
bank_type | string | |
user_repay_state | string | NOT_REPAY | REPAID | ALL_REFUND 枚举值之一 |
repay_transaction_id | string | |
repay_time | string | |
attach | string | |
contract_id | string | |
trade_scene | string | |
bus_info | object | |
start_time | string | 用户乘车时间(上车) |
line_name | string | 乘车路线 |
plate_number | string | 车牌号。 |
metro_info | object | |
start_time | string | 用户乘车时间(上车) |
end_time | string | 用户下车时间 |
start_station | string | 乘车起始站 |
end_station | string | 乘车终点站 |
amount | object | |
promotion_detail | object[] | |
coupon_id | string | |
name | string | |
scope | string | GLOBAL | SINGLE 枚举值之一 |
type | string | CASH | NOCASH 枚举值之一 |
stock_id | string | |
amount | integer | |
wechatpay_contribute | integer | |
merchant_contribute | integer | |
other_contribute | integer | |
currency | string |
参阅 息